{% extends 'base.html' %}

{% block content %}
    <div class="container">
        <div class="row">
            <div class="col-md-6">
                <form method="get" class="form-horizontal" role="form">
                    <p>GET 测试</p>
                    <label>消息：
                        <input name="msg_get" value="Get!" class="form-control"/>
                    </label>
                    <input type="submit" class="btn btn-primary">
                </form>
            </div>
            <div class="col-md-6">
                <form method="post" class="form-horizontal" role="form">
                    <p>Post 表单测试</p>
                    <label>消息：
                        <input name="msg_post" value="Post!" class="form-control"/>
                    </label>
                    <input type="submit" class="btn btn-primary">
                </form>
            </div>
        </div>
        <div class="row">
            {% if msg_get %}
                <p>你发送的Get消息：{{ msg_get }}</p>
            {% endif %}
            {% if msg_post %}
                <p>你发送的Post消息：{{ msg_post }}</p>
            {% endif %}
        </div>
    </div>

{% endblock %}